package user;

import book.BookList;
import operate.IOperation;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 10
 * Time: 21:01
 */
public abstract class User {
    protected String name;
    public IOperation[] iOperation;
    public User(String name){
        this.name = name;
    }
    public abstract int menu();
    public void doOperate(int choice, BookList bookList){
        iOperation[choice].work(bookList);
    }
}
